package com.dht.xiao.jianye.activity_bed;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.dht.xiao.jianye.R;
import com.dht.xiao.jianye.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class BedAllActivity extends BaseActivity {
    @BindView(R.id.send)
    TextView send;
    @BindView(R.id.seriesNum)
    TextView seriesNum;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_bed_all;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bed_all);
        ButterKnife.bind(this);

    }

    @OnClick({R.id.add, R.id.get, R.id.chaxun,R.id.btn_bind})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.add:
                login(1);
                break;
            case R.id.get:
                login(2);
                break;
            case R.id.chaxun:
                login(3);
                break;
            case R.id.btn_bind:
                login(4);
                break;
        }
    }

    private void login(int type){
        Intent intent = new Intent(BedAllActivity.this,LoginBedActivity.class);
        intent.putExtra("name",type);
        startActivity(intent);
    }




}
